<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="org.limp.mine.DateTrimmer"%>
<%@ page import="org.limp.mine.StringTool"%>
<%@ page import="jt.classic.app.info.AInfo" %>
<%@ page import="jt.classic.app.info.AInfoDirectory" %>
<%@ page import="jt.classic.system.ISystem" %>
<%@ page import="jt.classic.system.user.IUser" %>
<%@ page import="java.util.List" %>
<%@ page import="jt.classic.app.info.AInfoIssue" %>
<%
   String context = jt.classic.system.ISystem.getContextPath();
   
   IUser user = ISystem.getSessionUser(request);
   
   AInfo info = (AInfo)request.getAttribute("info");
   
   AInfoDirectory subject = info.isubject();
   
   String titleimg = (String)subject.getResource().get("ID_TITLEIMGURL");
   String titletype = (String)subject.getResource().get("ID_TITLEIMGTYPE");
   
   String groupName = (String)info.getResource().get("IF_GROUPNAME");
   
   AInfoIssue issue = info.issue();
   
   List annexs = (List)info.iannexs();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><%=info.ititle()%></title>
</head>
<jsp:include page="../head.jsp"></jsp:include>
<style>
.shadow {
	width: 70%;
	background: #EBEBEB;
	margin: 0 auto;
}

.con {
	background: #ffffff;
	padding: 10px;
	border: 1px solid #c0c0c0;
	border-top: 0px solid #c0c0c0;
	position: relative;
	left: -4px;
	top: -4px;
}

.con1 {
	background: #ffffff;
	border: 1px solid #c0c0c0;
	border-bottom: 0px solid #c0c0c0;
	position: relative;
	left: -4px;
	top: -4px;
}
</style>
<script>
   function viewAnnex(id){
    document.getElementById("helper").src = context + "/system/annex.do?method=view&id=" + id;
  }
</script>
<body topmargin="0">
<form name="form1" method="post" action="">
<input type="hidden" name="ifuserid" value="<%=user.id()%>">
<input type="hidden" name="ifusername" value="<%=user.iname()%>">
<input type="hidden" name="ifdate" value="<%=DateTrimmer.getYMDHMS()%>">
<div style="height:5px;"></div>
<div class="shadow">
<div class="con1">
<table width="100%" align="center"  border="0" cellspacing="0" cellpadding="0">
  <Tr>
		<Td Height="80" <%if(!titletype.toLowerCase().equals("swf")){%>background="<%=titleimg%>"<%}%>>
		<%if(titletype.toLowerCase().equals("swf")){%>
		<embed pluginspage="http://www.macromedia.com/go/getflashplayer" 
		src="<%=titleimg%>" 
		width="100%" height="100%" 
		type="application/x-shockwave-flash" menu="false" quality="high" />
		</embed>
		<%}else{%>
		<img style="margin-left:15px;" src="<%=context %>/newframe/images/logo.gif">
		<%} %>
		</Td>
	</Tr>
</table>
</div></div>	
<div class="shadow">
    <div class="con">
    
<table width="100%" align="center" class="tab-noborder" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2" align="center">
    <div style='margin:15px;font-family:"宋体",serif;font-size:24px;'><%=info.ititle()%></div>
    </td>
  </tr>
   <tr>
    <td colspan="2" align="center">
    <div style='margin:15px;font-family:"宋体",serif;font-size:14px;'>
     发布部门：<%=groupName%>
     发布人：<%=info.iuser().iname()%>&nbsp;&nbsp;发布日期：<%=DateTrimmer.getYMD_LBL(info.idate())%>
     <a href="javascript:void(0);" onclick="javascript:doPrint();">【打印本页】</a>
    </div>  
    </td>
  </tr>
  <tr>
    <td colspan="2" height="500" valign="top">
    <div style='padding-left:10px;padding-right:10px;font-family:"宋体",serif;font-size:14px;'>
    <%=info.icontent()%>
    </div>
    </td>
  </tr>
</table>
<%if(annexs != null && !annexs.isEmpty()){
%>
<table align="center" width="70%">
<tr><td><b>附件文件：</b></td></tr>
<%
    for(int i=0;i<annexs.size();i++){
        String[] temp = (String[])annexs.get(i);
  %>
  <tr><td><a href="javascript:void(0);" onclick="javascript:viewAnnex('<%=temp[0]%>');"><%=temp[1]%></a></td></tr>
  <%      
    }
  %>
  </table>
  <%    
   }
   %>
 </div></div>  
 <br/>
</form>
<iframe id="helper" name="helper" width="0" height="0"></iframe>
</body>
</html>